<?php


?>

<html>
<head>
<title>Setup Script </title>
</head>
<body>
<p>Provide information about the database which this script will protect</p>
<form action="writesiteinfo.php" method="post" >
<div class='entry'>
<label for='output'>Output to Screen or File</label>
<select name='output'>
  <option value='File'>File</option>
  <option value='Screen'>Screen (copy into file manualy)</option>
</select>
</div>
<div class='entry'>
<label for='database'>Database</label>
<input type='text' name='database' value='sampledb' />
</div>
<div class='entry'>
<label for='user'>DB User Name</label>
<input type='text' name='user' value='root' />
</div>
<div class='entry'>
<label for='pass'>DB Password</label>
<input type='password' name='pass' value='' />
</div>
<div class='entry'>
<label for='user_table'>Name of User Table</label>
<input type='text' name='user_table' value='users' />
</div>
<div class='entry'>
<label for='role_table'>Name of Role table</label>
<input type='text' name='role_table' value='roles' />
</div>
<div class='entry'>
<label for='directory'>directory</label>
<input type='text' name='directory' value='sitereg/' />
</div>
<div class='entry'>
<label for='site_name'>site_name</label>
<input type='text' name='site_name' value='RegTest' />
</div>
<div class='entry'>
<label for='page_afterreg'>page_afterreg</label>
<input type='text' name='page_afterreg' value='registration.php' />
</div>
<div class='entry'>
<label for='pi_subdir'>pi_subdir</label>
<input type='text' name='pi_subdir' value='reg_inc_page/' />
</div>
<div class='entry'>
<label for='mailer_dir'>Relative path of PHP Mailer</label>
<input type='text' name='mailer_dir' value='PHPMailer/' />
</div>
<div class='entry'>
<label for='defaultpage'>Page to load after login</label>
<input type='text' name='defaultpage' value='../index.php' />
</div>
<div class='entry'>
<label for='msg_badlogin'>Incorrect Login Message</label>
<input type='text' name='msg_badlogin' value='The username or password provided was incorrect.  Please try again.' />
</div>
These library locations will not usually be changed, unless they are moved to shared directories
<div class='entry'>
<label for='cf_subdir'>Connect Class Subdirectory</label>
<input type='text' name='cf_subdir' value='CFClass/' />
</div>
<div class='entry'>
<label for='write_connect'>Write new connection file (uncheck if using existing file)</label>
<input type='checkbox' name='write_connect' value='1' checked='checked' />
</div>
<div class='entry'>
<label for='connect_file'>File to include to connect to the database (relative to sitereg directory)</label>
<input type='text' name='connect_file' value='reg_db_connect.php' />
</div>
<div class='entry'>
<label for='query_file'>Specify Connection Functions</label>
<input type='text' name='query_file' value='CF_mysql_com.php' />
</div>
SSL Values
<div class='entry'>
<label for='ssl_port'>SSL Port Number</label>
<input type='text' name='ssl_port' value='443' />
</div>
<div class='entry'>
<label for='use_ssl'>Use SSL? (true/false)</label>
<input type='text' name='use_ssl' value='true' />
</div>

<div class='entry'>
<label for='msg_username'>msg_username</label>
<input type='text' name='msg_username' value='The username associated with this email is: ' />
</div>
<div class='entry'>
<label for='msg_password'>msg_password</label>
<input type='text' name='msg_password' value='Use this temporary password to login.  It will expire in 24 hours. Password is: ' />
</div>
<div class='submit'>
<input type='submit' name='go' value='Go' />
</div>
</form>

</body>
</html>